using System;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using Abp.Domain.Entities;
using Abp.Domain.Entities.Auditing;

namespace Yozeev.BusinessLogic
{
    /// <summary>
    /// 票型介绍
    /// </summary>
    public class TicketIntroduce : ByBranchEntity<Guid>
    {
        /// <summary>
        /// 票种标识
        /// </summary>
        public Guid TicketId { get; set; }
        [ForeignKey("TicketId")]
        public virtual Ticket Ticket { get; set; }
        /// <summary>
        /// 所属景区
        /// </summary>
        public Guid ScenicSpotId { get; set; }
        [ForeignKey("ScenicSpotId")]
        public virtual ScenicSpot ScenicSpot { get; set; }
        /// <summary>
        /// 商品名称
        /// </summary>
        public string TradeName { get; set; }
        /// <summary>
        /// 商品信息
        /// </summary>
        public string TradeInfo { get; set; }
        /// <summary>
        /// 地址
        /// </summary>
        public string Address { get; set; }
        /// <summary>
        /// 封面图
        /// </summary>
        public string CoverMap { get; set; }
        /// <summary>
        /// 摘要
        /// </summary>
        public string Abstract { get; set; }
        /// <summary>
        /// 购票需知
        /// </summary>
        [Column(TypeName="text")]
        public string Notice { get; set; }
        /// <summary>
        /// 退票规则
        /// </summary>
        [Column(TypeName = "text")]
        public string RefundRule { get; set; }
        /// <summary>
        /// 是否上架
        /// </summary>
        public bool IsOnLine { get; set; }
    }
}
